<?php

/**
 * Picture form.
 *
 * @package    auction
 * @subpackage form
 * @author     Do Anh Tu
 * @version    SVN: $Id: sfDoctrineFormTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class PictureForm extends BasePictureForm
{
  public function configure()
  {
    $this->useFields(array('filename', 'caption'));

    $this->setWidget('filename', new sfWidgetFormInputFile());
    $this->setValidator('filename', new sfValidatorFile(array(
      'mime_types' => 'web_images',
      'path' => sfConfig::get('sf_upload_dir').'/products',
    )));
  }
}
